<template>
  <div>
    <home-header :city="city.city"></home-header>
  </div>
</template>

<script>
import { mapState } from 'vuex'

import HomeHeader from './HomeHeader.vue'

export default {
  components: {
    HomeHeader
  },
  computed: {
    ...mapState({
      city: state => state.city
    })
  },
  mounted() {
    console.log('首页数据', this.$store.state.home)
  }
}
</script>

<style>
</style>
